From 66a36f833710d0032910d18cb4a890f4efae6913 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sun, 9 Jun 2013 23:05:43 +0000 Subject: [PATCH] garmin_gpi: Seek to image offset in case there's additional headers in the bmp, such as those inserted by gimp, etc. Fix warning when compiling with debug. --- gpsbabel/garmin_gpi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/garmin_gpi.cc b/gpsbabel/garmin_gpi.cc index cd055b2cc..11a6cd37b 100644 --- a/gpsbabel/garmin_gpi.cc +++ b/gpsbabel/garmin_gpi.cc @@ -678,7 +678,7 @@ read_tag(const char* caller, const int tag, waypoint* wpt) #ifdef GPI_DBG { int x; - unsigned char* b = xmalloc(sz); + unsigned char* b = (unsigned char*) xmalloc(sz); fprintf(stderr, "Tag: %x\n", tag); gbfread(b, 1, sz, fin); fprintf(stderr, "\n"); -- 2.30.2